﻿#ifndef RECVMSGSOLVE_H
#define RECVMSGSOLVE_H

#include <QObject>
#include <QThread>
#include <QMutex>

#include "NetHeader.h"

class RecvMsgEmit : public QThread
{
    Q_OBJECT
public:
    explicit RecvMsgEmit(QObject *parent = nullptr);

public slots:
    void stopRecvSolveThread();

signals:
    void recvMsg(MESG *);

private:
    bool m_isRun;
    QMutex m_mutex;

    void run() override;

};

#endif // RECVMSGSOLVE_H
